﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using GMap.NET;
using GMap.NET.WindowsForms;
using System.Net;

namespace EkspSys.Map
{
    class GMapRouteMarker : GMapSelectableMarker
    {
        private IPAddress addr;

        public GMapRouteMarker(PointLatLng p, IPAddress addr)
            : base(p)
        {
            this.addr = addr;
        }

        public IPAddress Address
        {
            get { return addr; }
            set { addr = value; }
        }

        public override void OnRender(Graphics g)
        {
            Brush b = new SolidBrush(Color.Red);
            g.DrawEllipse(Pen, new System.Drawing.Rectangle(LocalPosition.X, LocalPosition.Y, Size.Width, Size.Height));
            g.FillEllipse(b, new System.Drawing.Rectangle(LocalPosition.X, LocalPosition.Y, Size.Width, Size.Height));
        }
    }
}
